home *** CD-ROM | disk | FTP | other *** search
Wrap
<% on error resume next dim SecurityBox if (Session("Index") <> "Index") then 'add your session management code here Response.Redirect "index.asp" elseif ((Request.QueryString("WebSiteName") = "") or (Request.QueryString("Path") = "") or (Request.QueryString("Return") = "") or (Request.QueryString("FileName") = "")) then Session("Index") = "" Session("Error") = "Required fields does not exist for processing" Response.Redirect("index.asp") else set SecurityBox = Server.CreateObject("AdvFusionBox.FusionBox") SecurityBox.Write "WebSite.ini", "Path", Request.QueryString("WebSiteName"), Request.QueryString("Path"), 1 if (SecurityBox.IsError = 1) then Session("Error") = SecurityBox.ErrorReason set SecurityBox = nothing Response.Redirect(Request.QueryString("Return")) end if SecurityBox.Write "WebSite.ini", "Description", Request.QueryString("WebSiteName"), "ASPFusion Security Box for " & Request.QueryString("WebSiteName"), 1 if (SecurityBox.IsError = 1) then Session("Error") = SecurityBox.ErrorReason set SecurityBox = nothing Response.Redirect(Request.QueryString("Return")) end if set Result = SecurityBox.ReturnValue("Admin.ini", "Settings", "Default") if (SecurityBox.IsError = 1) then Session("Error") = SecurityBox.ErrorReason set SecurityBox = nothing Response.Redirect(Request.QueryString("Return")) end if SecurityBox.Write "WebSite.ini", "Security", Request.QueryString("WebSiteName"), Result.Value, 1 set Result = nothing if (SecurityBox.IsError = 1) then Session("Error") = SecurityBox.ErrorReason set SecurityBox = nothing Response.Redirect(Request.QueryString("Return")) end if set Result = SecurityBox.GetAllSectionKeys("Admin.ini", "DefaultMethods") for each Member in Result SecurityBox.Write "WebSite.ini", Request.QueryString("WebSiteName"), Member.Key, Member.Value, 1 next set Result = nothing if (SecurityBox.IsError = 1) then Session("Error") = SecurityBox.ErrorReason set SecurityBox = nothing Response.Redirect(Request.QueryString("Return")) end if 'ASP Include Start Mark 'ASP Include End Mark set SecurityBox = nothing Response.Redirect("act_build_automate.asp?filename=" & Request.QueryString("FileName") & "&return=" & Request.QueryString("Return")) end if %>